package com.lefu.es.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * oAuthor:${李强}
 * date:2018/4/23
 * time:19:01
 * projectName:iWellnessCN2_en_new 3.0_1
 */
@Entity
public class DeviceMacDao {

    @Id(autoincrement = true)
    private Long id;
    @Unique
    private String mac;
    private String deviceName;
    private String deviceType;

    @Generated(hash = 1064113159)
    public DeviceMacDao(Long id, String mac, String deviceName, String deviceType) {
        this.id = id;
        this.mac = mac;
        this.deviceName = deviceName;
        this.deviceType = deviceType;
    }

    @Generated(hash = 980826323)
    public DeviceMacDao() {
    }

    @Override
    public String toString() {
        return "DeviceMacDao{" +
                "id=" + id +
                ", mac='" + mac + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", deviceType='" + deviceType + '\'' +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMac() {
        return mac == null ? "" : mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getDeviceName() {
        return deviceName == null ? "" : deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceType() {
        return deviceType == null ? "" : deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }
}
